package com.woniuxy.carlife.service;

import com.woniuxy.carlife.domain.ServiceRoyalty;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.carlife.param.ServiceRoyaltyParam;

import java.util.List;

/**
 * @author fx
 * @ClassName:ServiceInfoService
 * @Description: 抽成规则service接口
 * @date 2021/4/6 20:00
 **/

public interface ServiceRoyaltyService extends IService<ServiceRoyalty> {

    /**
     * 功能描述〈根据服务类别id新增抽成规则〉
     * @author:fx
     * @param: @param null: 
     * @return: 
     * @Date 2021/4/12 15:26
     * @throws 
     */
    Boolean saveServiceRoyalty(ServiceRoyaltyParam royaltyParam);
    
    /**
     * 功能描述〈查询所有抽成规则信息〉
     * @author:fx
     * @param: @param null: 
     * @return: 
     * @Date 2021/4/12 15:35
     * @throws 
     */
    List<ServiceRoyalty> findAllServiceRoyalty();

    /**
     * 功能描述〈根据类别id查询信息〉
     * @author:fx
     * @param: @param null:
     * @return:
     * @Date 2021/4/12 15:44
     * @throws
     */
    ServiceRoyalty findServiceRoyaltyByCatagoryId(Integer categoryId);

    /**
     * 功能描述〈根据类别id修改抽成信息〉
     * @author:fx
     * @param: @param null:
     * @return:
     * @Date 2021/4/12 15:45
     * @throws
     */
    Boolean updateServiceRoyaltyByCatagoryId(ServiceRoyaltyParam royaltyParam);
}
